package com.ruoyi.system.mapper.zhuangxiumapper.shopMapper;

import com.ruoyi.system.domain.zhuangxiumain.shopMain.ProductCategory;

import java.util.List;

public interface ProductCategoryMapper {

    //TODO 以下是店铺 用的

    public ProductCategory selectProductCategoryById(Integer categoryId);
    public List<ProductCategory> selectProductCategoryList(Integer brandId);
    public List<ProductCategory> findAllCommenOne();
    public List<ProductCategory> findAllCommenOneZi(Integer parentId);
    public List<ProductCategory> CategoryListHouse(ProductCategory productCategory);

    public List<ProductCategory> findAllCommenTwo();
    public List<ProductCategory> findAllCommenTwoZi(Integer parentId);

    public List<ProductCategory> ProductCategoryList(ProductCategory productCategory);

    //  以下暂时忘了是啥的了

//    查询一级分类
    public List<ProductCategory> findAllList(ProductCategory productCategory);
//    添加一级分类
    public int insertCategory(ProductCategory productCategory);
//    删除一级分类
    public int deleteCategoryByIds(Long[] categoryId);

//   0 禁用  1 启动
    public int updataByOneId(ProductCategory productCategory);


//    TODO: 以下查询 超管 商品分类
    public List<ProductCategory> supertfindAllListOne(ProductCategory productCategory);
    public List<ProductCategory> supertfindAllListOneZi(Integer parentId);


    public List<ProductCategory> supertfindAllListTwo(ProductCategory productCategory);
    public List<ProductCategory> supertfindAllListTwoZi(Integer parentId);

    public int updateCategorySuper(ProductCategory productCategory);

    public int deleteOneSuperByIds(Integer[] categoryId);

    public int insertProductCategory(ProductCategory productCategory);
    public int insertProductCategoryZi(ProductCategory productCategory);

}
